chore: use import.meta.dirname in tests - #1303
Conversation
|
Install the latest version of pnx https://pkg.svelte.dev/sv/c/f55aeffa312e37f5b7467553285110174be6b440 createOpen in Note This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed. |
|
|
|
||
| // path to the `node_modules` directory of `sv` | ||
| const NODE_MODULES = fileURLToPath(new URL('../../node_modules', import.meta.url)); | ||
| const NODE_MODULES = path.resolve(import.meta.dirname, '..', '..', 'node_modules'); |
There was a problem hiding this comment.
just want to note that this change is in a module that's outside of our tests and is in core, which should be fine given that our minimum supported version is node v22
AdrianGonz97
left a comment
There was a problem hiding this comment.
this is great, thank you!
Closes #
Description
import.meta.dirname(introduced in node@20.11.0) overfileURLToPathempathic/findto findROOTChecklist